     <div class="text-right padd-b">
	 	<a href="http://localhost:8080/RDCNEW/admin/panel/add" class="btn btn-primary btn-sm" active" role="button"><span class="glyphicon glyphicon-plus">&nbsp;</span>Thêm Admin</a>
	 </div>  
     <table class="table table-hover">
                            <thead>  
                              <tr class="success">  
                                <th>#</th>  
                                <th><span class="glyphicon glyphicon-user ">&nbsp;</span>Admin</th>  
                                <th><span class="glyphicon glyphicon-star ">&nbsp;</span>Quyền Hạn</th>  
                                <th><span class="glyphicon glyphicon-wrench ">&nbsp;</span>Sửa</th>
                                <th><span class="glyphicon glyphicon-remove ">&nbsp;</span>Xóa</th>
                              
                              </tr>  
                            </thead>  
                            <tbody>  
                            <?php 
                            $i=1;
                            $currentPage =$this->users->getCurrentPageNumber();
                            $itemPerPage =$this->users->getItemCountPerPage();
                            
                             foreach ($this->users as $user){
                             	$index= $i+($currentPage-1)*$itemPerPage;
								echo "<tr>";
								echo "<td>".$index."</td>";
								echo "<td>". $user['username']. "</td>";
								if( $user['role']=="0"){
									echo "<td>Super Admin</td>";
								}else if( $user['role']=="1"){
									echo "<td> Admin</td>";
								}else{
									echo "<td> Mod</td>";
								}
								if($user['role']=="0"){
									echo"<td><a href='#' style='cursor:not-allowed' onclick='return false' disab class='btn btn-default btn-sm' role='button'>Edit</a></td>";
									echo"<td><a href='#' style='cursor:not-allowed' onclick='return false' disab class='btn btn-default btn-sm' role='button'>Delete</a></td>";
								}else{
									echo"<td><a href='".HOST_PATH.'admin/panel/edit/id/'.$user['id']."' class='btn btn-info btn-sm' role='button'>Edit</a></td>";
									echo"<td><a datalink='".HOST_PATH.'admin/panel/delete/id/'.$user['id']."' class='btn btn-danger btn-sm delete-button' role='button'>Delete</a></td>";
								}
								 $i++;
								echo "</tr>";
                             	
                             }
                            ?>
                           
                            </tbody> 
               </table>
            	  <?php

      				 echo $this->paginationControl($this->users, 'Sliding' , 'pagination.phtml');
     				
				?>